let form = layui.form
$.ajax({
    url: '/my/article/cates',
    success: function(res) {
        if (res.status == 0) {
            let str = `<option value="">请选择文章类别</option>`
            res.data.foreach(item => {
                str += `<option value="${item.Id}">${item.name}</option>`
            })
            $('select').html(str)
            form.render('select')
        }
    }
})